package com.example.dig.model;

import com.example.dig.util.Excel;

public class User {

    @Excel(name = "姓名")
    private String name;
    @Excel(name = "年龄")
    private int age;

    /**
     * 0-女，1-男
     */
    @Excel(name = "性别", dictValue = "0=女,1=男")
    private int sex;

    private String loving;

    public User() {
    }

    public User(String name, int age, int sex, String loving) {
        this.name = name;
        this.age = age;
        this.sex = sex;
        this.loving = loving;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public String getLoving() {
        return loving;
    }

    public void setLoving(String loving) {
        this.loving = loving;
    }
}
